package metalink.admin;


import java.util.ArrayList;

import vo.BatchDetailsVo;
import vo.mixed.CourseListVo;
import vo.mixed.DegreeListVo;
import vo.mixed.DepartmentListVo;
import vo.mixed.ProfessorListVo;
import vo.mixed.StudentListVo;

import model.admin.GetBatchListMo;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class GetBatchList extends ActionSupport {
int batch_id;
ArrayList<BatchDetailsVo> batch_list;
ArrayList<CourseListVo> batch_course_list;
ArrayList<DegreeListVo> batch_degree_list;
ArrayList<DepartmentListVo> batch_department_list;
ArrayList<StudentListVo> batch_student_list;
ArrayList<ProfessorListVo> batch_professor_list;

public int getBatch_id() {
	return batch_id;
}

public void setBatch_id(int batch_id) {
	this.batch_id = batch_id;
}


	public ArrayList<CourseListVo> getBatch_course_list() {
	return batch_course_list;
}

public void setBatch_course_list(ArrayList<CourseListVo> batch_course_list) {
	this.batch_course_list = batch_course_list;
}

	public ArrayList<BatchDetailsVo> getBatch_list() {
	return batch_list;
}

public void setBatch_list(ArrayList<BatchDetailsVo> batch_list) {
	this.batch_list = batch_list;
}

	public ArrayList<DegreeListVo> getBatch_degree_list() {
	return batch_degree_list;
}

public void setBatch_degree_list(ArrayList<DegreeListVo> batch_degree_list) {
	this.batch_degree_list = batch_degree_list;
}

public ArrayList<DepartmentListVo> getBatch_department_list() {
	return batch_department_list;
}

public void setBatch_department_list(
		ArrayList<DepartmentListVo> batch_department_list) {
	this.batch_department_list = batch_department_list;
}

public ArrayList<StudentListVo> getBatch_student_list() {
	return batch_student_list;
}

public void setBatch_student_list(
		ArrayList<StudentListVo> batch_student_list) {
	this.batch_student_list = batch_student_list;
}

	public ArrayList<ProfessorListVo> getBatch_professor_list() {
	return batch_professor_list;
}

public void setBatch_professor_list(
		ArrayList<ProfessorListVo> batch_professor_list) {
	this.batch_professor_list = batch_professor_list;
}

	public String execute() throws Exception {
		GetBatchListMo BatchListObject= new GetBatchListMo();
		setBatch_list(BatchListObject.getBatchList());
		
		return SUCCESS;
	}

	public String getBatchDepartmentDetails() throws Exception {
		GetBatchListMo BatchDepartmentList= new GetBatchListMo();
		setBatch_department_list(BatchDepartmentList.getDepartmentList(batch_id,0));

		return SUCCESS;
	}

	public String getBatchCourseDetails() throws Exception {
		GetBatchListMo BatchCourseList= new GetBatchListMo();
		setBatch_course_list(BatchCourseList.getBatchCourseList(batch_id,0,0));
		return SUCCESS;
	}

	public String getBatchProfessorDetails() throws Exception {
		GetBatchListMo BatchProfessorList= new GetBatchListMo();
		setBatch_professor_list(BatchProfessorList.getBatchProfessorList(batch_id));

		return SUCCESS;
	}

	public String getBatchStudentDetails() throws Exception {
		GetBatchListMo BatchStudentList= new GetBatchListMo();
		setBatch_student_list(BatchStudentList.getBatchStudentList(batch_id,0));

		return SUCCESS;
	}

	public String getBatchDegreeDetails() throws Exception {

		GetBatchListMo BatchDegreeList= new GetBatchListMo();
		setBatch_degree_list(BatchDegreeList.getBatchDegreeList(batch_id));
return SUCCESS;
	}

	
	// to be kept in different file 
	public String editBatchStudentDetails() throws Exception {
		return SUCCESS;
	}

	public String deleteBatchStudentDetails() throws Exception {
		return SUCCESS;
	}

	public String addNewStudent() throws Exception {
		return SUCCESS;
	}

}
